<%@page import="cn.hutool.extra.servlet.ServletUtil"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
     Cookie[] cs = request.getCookies();
     if(cs==null){
    	 out.println("没有cookie");
     }else{
    	 for(Cookie c : cs){
    		 out.println(c.getName()+" = "+c.getValue());
    	 }
     }
     out.println("-----------------------");
     if(ServletUtil.getCookie(request, "a1")!=null){
    	out.println("a1="+ServletUtil.getCookie(request, "a1").getValue());
     }
%>
</body>
</html>